set OUT=../../java
set def_java=(message)

for %%A in %def_java% do (
    echo generate cli protocol java code: %%A.proto
    protoc --experimental_allow_proto3_optional --java_out=%OUT% ./%%A.proto
)

pause